<template>
  <el-row>
    <!-- 占满24栏 -->
    <el-col :span="24"> <div class="grid-content bg-purple-dark">24列</div> </el-col>
  </el-row>
  <el-row>
    <!-- 占满8栏 -->
    <el-col :span="8"> <div class="grid-content bg-purple">8列</div> </el-col>
    <el-col :span="8"> <div class="grid-content bg-purple-light">8列</div> </el-col>
    <el-col :span="8"> <div class="grid-content bg-purple">8列</div> </el-col>
  </el-row>
  <el-row>
    <el-col :span="6"> <div class="grid-content bg-purple-dark">6列</div> </el-col>
    <el-col :span="6"> <div class="grid-content bg-purple-light">6列</div> </el-col>
    <el-col :span="6"> <div class="grid-content bg-purple-dark">6列</div> </el-col>
    <el-col :span="6"> <div class="grid-content bg-purple-light">6列</div> </el-col>
  </el-row>
  <!-- 栅格之间距 -->
  <el-row :gutter="20">
    <el-col :span="16"> <div class="grid-content bg-purple-dark">16列</div> </el-col>
    <el-col :span="8"> <div class="grid-content bg-purple">8列</div> </el-col>
  </el-row>
  <el-row :gutter="20">
    <el-col :span="8"> <div class="grid-content bg-purple-dark">8列</div> </el-col>
    <el-col :span="8"> <div class="grid-content bg-purple">8列</div> </el-col>
    <el-col :span="4"> <div class="grid-content bg-purple">4列</div> </el-col>
    <el-col :span="4"> <div class="grid-content bg-purple">4列</div> </el-col>
  </el-row>
  
  
  <el-row :gutter="20">
    <el-col :span="4"> <div class="grid-content bg-purple-dark">4列</div> </el-col>
    <el-col :span="16"> <div class="grid-content bg-purple">16列</div> </el-col>
    <el-col :span="4"> <div class="grid-content bg-purple">4列</div> </el-col>
  </el-row>
  
  <el-row :gutter="20">
    <el-col :span="6"> <div class="grid-content bg-purple-dark">6列</div> </el-col>
    <el-col :span="6"> <div class="grid-content bg-purple">6列</div> </el-col>
    <el-col :span="6" :offset="6"> <div class="grid-content bg-purple">偏移6列</div> </el-col>
  </el-row>

    
  <el-row :gutter="20">
    <el-col :span="6" :offset="6"> <div class="grid-content bg-purple">偏移6列</div> </el-col>
    <el-col :span="6" :offset="6"> <div class="grid-content bg-purple">偏移6列</div> </el-col>
  </el-row>

  <el-row :gutter="20">
    <el-col :span="12" :offset="6"> <div class="grid-content bg-purple">偏移6列</div> </el-col>
  </el-row>

  
  
</template>

<style>
.el-row {
  margin-bottom: 20px;

  &:last-child {
    margin-bottom: 0;
  }

  .el-col {
    border-radius: 4px;
  }

  .bg-purple-dark {
    background: #5555ff;
  }

  .bg-purple {
    background: #95e6ba;
  }

  .bg-purple-light {
    background: #f29a84;
  }
  
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
}
</style>